/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
const adminRouter = {
  path: '/admin',
  component: Layout,
  name: '系统',
  meta: {
    title: '系统',
    subtitle:'系统',
    icon: 'system'
  },
  children: [
    // 模拟三级路由
    {
      path: '',
      component: Layout,
      name: '系统管理',
      meta: { title: '系统管理', subtitle: '系统', icon: 'menu_system'},
      childrens: [
        {
          path: '/sysMenu/list',
          meta: { title: '菜单管理',subtitle:'菜单', icon: 'menu_sysMenu', permissions: ['sysMenu.query'] }
        },
        {
          path: '/sysIcon/index',
          meta: { title: '素材图库',subtitle:'素材', icon: 'menu_sysIcon', permissions: ['sysIcon.query'] }
        },
        {
          path: '/sysTemplate/list',
          meta: { title: '消息模版',subtitle:'消息', icon: 'menu_sysTemplate', permissions: ['sysTemplate.query'] }
        },
        {
          path: '/sysReport/list',
          meta: { title: '报表设置', subtitle:'报表',icon: 'menu_order', permissions: ['sysReport.query'] }
        },
        {
          path: '/sysDict/list',
          meta: { title: '数据字典', subtitle:'字典',icon: 'menu_order', permissions: ['sysTemplate.query'] }
        },
        {
          path: '/sysJob/list',
          meta: { title: '计划任务', subtitle:'计划',icon: 'menu_product', permissions: ['sysJob.query'] }
        },
        {
          path: '/accusation/list',
          meta: {title: '投诉举报' ,subtitle:'投诉举报',icon:'menu_material',permissions:['warehouse.query']}
        },
        {
          path: '/leaving/list',
          meta: {title: '建议咨询' ,subtitle:'建议咨询',icon:'menu_material',permissions:['warehouse.query']}
        }
      ]
    },
    // 模拟三级路由
    {
      path: '',
      component: Layout,
      name: '商户管理',
      meta: { title: '商户管理', subtitle: '商户', icon: 'menu_sysMch' },
      childrens: [
        {
          path: '/storeClassification/list',
          meta: { title: '商户分类', subtitle:'店铺',icon: 'menu_sysSetUp',permissions:['parameter.query'] }
        },
        {
          path: '/sysMch/list',
          meta: { title: '子商户管理', subtitle: '商户', icon: 'menu_sysMch', permissions: ['sysMch.query'] },
        },
        {
          path: '/agent/list',
          meta: { title: '代理商管理', subtitle: '代理', icon: 'menu_sysMch', permissions: ['sysMch.query'] },
        },
      ]
    },

    // 注册路由
    {
      path: '/leaving/list',
      component: () => import('@/views/leaving/list'),
      name: 'accusation-list',
      meta: {title: '建议咨询' ,subtitle:'建议咨询',icon:'menu_material',permissions:['warehouse.query']},
      hidden: true
    },
    {
      path: '/accusation/list',
      component: () => import('@/views/accusation/list'),
      name: 'accusation-list',
      meta: {title: '投诉举报' ,subtitle:'投诉举报',icon:'menu_material',permissions:['warehouse.query']},
      hidden: true
    },
    {
      path: '/sysMenu/list',
      component: () => import('@/views/sysMenu/list'),
      name: 'sysMenu-list',
      meta: { title: '菜单管理',subtitle:'菜单', icon: 'menu_sysMenu', permissions: ['sysMenu.query'] },
      hidden: true
    },
    {
      path: '/sysMenu/add',
      component: () => import('@/views/sysMenu/add'),
      name: 'sysMenu-add',
      meta: { title: '新增菜单', icon: 'menu_sysMenu' },
      hidden: true
    },
    {
      path: '/sysMenu/edit',
      component: () => import('@/views/sysMenu/edit'),
      name: 'sysMenu-edit',
      meta: { title: '修改菜单', icon: 'menu_sysMenu' },
      hidden: true
    },
    {
      path: '/sysIcon/index',
      component: () => import('@/views/sysIcon/index'),
      name: 'sysIcon-index',
      meta: { title: '素材图库',subtitle:'素材', icon: 'menu_sysIcon', permissions: ['sysIcon.query'] },
      hidden: true
    },
    {
      path: '/sysTemplate/list',
      component: () => import('@/views/sysTemplate/list'),
      name: 'sysTemplate-list',
      meta: { title: '消息模版',subtitle:'消息', icon: 'menu_sysTemplate', permissions: ['sysTemplate.query'] },
      hidden: true
    },
    {
      path: '/sysTemplate/add',
      component: () => import('@/views/sysTemplate/add'),
      name: 'sysTemplate-add',
      meta: { title: '新增模版', icon: 'menu_sysTemplate' },
      hidden: true
    },
    {
      path: '/sysTemplate/edit',
      component: () => import('@/views/sysTemplate/edit'),
      name: 'sysTemplate-edit',
      meta: { title: '修改模版', icon: 'menu_sysTemplate' },
      hidden: true
    },
   {
      path: '/sysReport/list',
      component: () => import('@/views/sysReport/list'),
      name: 'sysReport-list',
      meta: { title: '报表设置', subtitle:'报表',icon: 'menu_order', permissions: ['sysReport.query'] },
      hidden: true
    },
    {
      path: '/sysReport/edit',
      component: () => import('@/views/sysReport/edit'),
      name: 'sysReport-edit',
      meta: { title: '修改报表', icon: 'menu_order', permissions: ['sysReport.edit'] },
      hidden: true
    },
    {
      path: '/sysReport/add',
      component: () => import('@/views/sysReport/add'),
      name: 'sysReport-add',
      meta: { title: '新增报表', icon: 'menu_order', permissions: ['sysReport.add'] },
      hidden: true
    },
    {
      path: '/sysDict/list',
      component: () => import('@/views/sysDict/list'),
      name: 'sysDict-list',
      meta: { title: '数据字典', subtitle:'字典',icon: 'menu_order', permissions: ['sysTemplate.query'] },
      hidden: true
    },
    {
      path: '/sysJob/list',
      component: () => import('@/views/sysJob/list'),
      name: 'sysJob-list',
      meta: { title: '计划任务', subtitle:'计划',icon: 'menu_product', permissions: ['sysJob.query'] },
      hidden: true
    },
    {
      path: '/sysJob/add',
      component: () => import('@/views/sysJob/add'),
      name: 'sysJob-add',
      meta: { title: '新增任务', icon: 'menu_product' },
      hidden: true
    },
    {
      path: '/sysJob/edit',
      component: () => import('@/views/sysJob/edit'),
      name: 'sysJob-edit',
      meta: { title: '修改任务', icon: 'menu_product' },
      hidden: true
    },


    // 注册路由
    {
      path: '/sysMch/list',
      component: () => import('@/views/sysMch/list'),
      name: 'sysMch-list',
      meta: { title: '商户管理', subtitle: '商户', icon: 'menu_sysMch', permissions: ['sysMch.query'] },
      hidden: true
    },
    {
      path: '/sysMch/add',
      component: () => import('@/views/sysMch/add'),
      name: 'sysMch-add',
      meta: { title: '新增商户', icon: 'menu_sysMch' },
      hidden: true
    },
    {
      path: '/sysMch/edit',
      component: () => import('@/views/sysMch/edit'),
      name: 'sysMch-edit',
      meta: { title: '修改商户', icon: 'menu_sysMch' },
      hidden: true
    },
    {
      path: '/sysMch/details',
      component: () => import('@/views/sysMch/details'),
      name: 'sysMch-edit',
      meta: { title: '商户详情', icon: 'menu_sysMch' },
      hidden: true
    },


    {
      path: '/storeClassification/add',
      component: () => import('@/views/storeClassification/add'),
      name: 'productCategory-add',
      meta: { title: '新增商品分类', icon: 'menu_product' },
      hidden: true
    },
    {
      path: '/storeClassification/edit',
      component: () => import('@/views/storeClassification/edit'),
      name: 'productCategory-edit',
      meta: { title: '修改商品分类', icon: 'menu_product' },
      hidden: true
    },
    {
      path: '/storeClassification/list',
      component: () => import('@/views/storeClassification/list'),
      name: 'productCategory-list',
      meta: { title: '商户分类详情', icon: 'menu_product' },
      hidden: true
    },





    {
      path: '/sysPlugin/list',
      component: () => import('@/views/sysPlugin/list'),
      name: 'sysPlugin-list',
      meta: { title: '插件安装', icon: 'menu_system' },
      hidden: true
    },
    {
      path: '/agent/list',
      component: () => import('@/views/agent/list'),
      name: 'agent-list',
      meta: { title: '代理商管理', subtitle: '代理商', icon: 'menu_sysMch', permissions: ['sysMch.query'] },
      hidden: true
    },
    {
      path: '/agent/add',
      component: () => import('@/views/agent/add'),
      name: 'agent-add',
      meta: { title: '新增代理商', icon: 'menu_sysMch' },
      hidden: true
    },
    {
      path: '/agent/edit',
      component: () => import('@/views/agent/edit'),
      name: 'agent-edit',
      meta: { title: '修改代理商', icon: 'menu_sysMch' },
      hidden: true
    },
    {
      path: '/agent/details',
      component: () => import('@/views/agent/details'),
      name: 'agent-edit',
      meta: { title: '代理商详情', icon: 'menu_sysMch' },
      hidden: true
    },

    {
      path: '/contract/list',
      component: () => import('@/views/contract/list'),
      name: 'tag-list',
      meta: {title: '合同管理' ,subtitle:'标签',icon:'menu_tag',permissions:['tag.query']},
      hidden: true
    },

    {
      path: '/sysMch/capitalFlow',
      component: () => import('@/views/sysMch/capitalFlow'),
      name: 'sysMch-capitalFlow',
      meta: { title: '资金流水', icon: 'menu_sysMch' },
      hidden: true
    },

  ]
}
export default adminRouter
